package com.tyy.springconcurrency.demos.web.util;

import com.tyy.springconcurrency.demos.web.BasicController;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.retry.support.RetryTemplate;

public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(RetryConfig.class);
        RetryTemplate retryTemplate = context.getBean(RetryTemplate.class);
        BasicController basicController = context.getBean(BasicController.class);
        // ApiService apiService = context.getBean(ApiService.class);
       /*  try {
            String response = apiService.sendRequest("https://example.com/api");
            System.out.println("请求成功，响应内容: " + response);
        } catch (Exception e) {
            e.printStackTrace();
        } */
        // context.close();
    }
}